@import "../../_common/style/mixins/var";
@mixin vmui-slider {
  .vmui-slider {
    position: relative;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    &.horizontal {
      .slider-wrap {
        img {
          width: 100%;
        }
      }
      .slider-pagination-wrap {
        height: pxRem(30);
        bottom: 0; left: 0; right: 0;
        .slider-pagination-item {
          display: inline-block;
          margin: 0 pxRem(4);
        }
      }
    }
    &.vertical {
      .slider-wrap {
        flex-direction: column;
        img {
          height: 100%;
        }
      }
      .slider-pagination-wrap {
        flex-direction: column;
        width: pxRem(30);
        top: 0; bottom: 0; right: 0;
        .slider-pagination-item {
          display: block;
          margin: pxRem(4) 0;
        }
      }
    }
    .slider-wrap {
      height: 100%;
      display: flex;
      .vmui-slider-item {
        height: 100%;
        width: 100%;
        flex-shrink: 0;
        //overflow: auto;
      }
    }
    .slider-pagination-wrap {
      display: flex;
      justify-content: center;
      position: absolute;
      .slider-pagination-item {
        line-height: pxRem(15);
        width: pxRem(6);
        height: pxRem(6);
        border-radius: pxRem(3);
        background: #666;
        &.active {
          background: #f06;
        }
      }
    }
  }
}
